this.uuid = uuid;
- this._settings = new Gio.Settings({ schema: 'org.gnome.shell' });
+ this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
this._settings.connect('changed::enabled-extensions', Lang.bind(this,
function() {
this._switch.state = this._isEnabled();
Lang.bind(this, this._onTimedLoginRequested));
}
- this._settings = new Gio.Settings({ schema: GdmUtil.LOGIN_SCREEN_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: GdmUtil.LOGIN_SCREEN_SCHEMA });
this._settings.connect('changed::' + GdmUtil.BANNER_MESSAGE_KEY,
Lang.bind(this, this._updateBanner));
this._client = client;
- this._settings = new Gio.Settings({ schema: LOGIN_SCREEN_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: LOGIN_SCREEN_SCHEMA });
this._settings.connect('changed',
Lang.bind(this, this._updateDefaultService));
this._updateDefaultService();
_init: function(items) {
this.parent(items);
- this._settings = new Gio.Settings({ schema: 'org.gnome.shell.window-switcher' });
+ this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell.window-switcher' });
},
_getWindowList: function() {
this._arrows = [];
let windowTracker = Shell.WindowTracker.get_default();
- let settings = new Gio.Settings({ schema: 'org.gnome.shell.app-switcher' });
+ let settings = new Gio.Settings({ schema_id: 'org.gnome.shell.app-switcher' });
let workspace = settings.get_boolean('current-workspace-only') ? global.screen.get_active_workspace()
: null;
let allWindows = global.display.get_tab_list(Meta.TabList.NORMAL, workspace);
Shell.AppSystem.get_default().connect('installed-changed', Lang.bind(this, function() {
Main.queueDeferredWork(this._redisplayWorkId);
}));
- this._folderSettings = new Gio.Settings({ schema: 'org.gnome.desktop.app-folders' });
+ this._folderSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.app-folders' });
this._folderSettings.connect('changed::folder-children', Lang.bind(this, function() {
Main.queueDeferredWork(this._redisplayWorkId);
}));
Name: 'AppDisplay',
_init: function() {
- this._privacySettings = new Gio.Settings({ schema: 'org.gnome.desktop.privacy' });
+ this._privacySettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.privacy' });
this._privacySettings.connect('changed::remember-app-usage',
Lang.bind(this, this._updateFrequentVisibility));
controlPosition: true,
settingsSchema: BACKGROUND_SCHEMA });
- this._settings = new Gio.Settings({ schema: params.settingsSchema });
+ this._settings = new Gio.Settings({ schema_id: params.settingsSchema });
this._container = params.container;
this._layoutManager = params.layoutManager;
this._effects = params.effects;
_init: function() {
this._weekStart = Shell.util_get_week_start();
- this._settings = new Gio.Settings({ schema: 'org.gnome.shell.calendar' });
+ this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell.calendar' });
this._settings.connect('changed::' + SHOW_WEEKDATE_KEY, Lang.bind(this, this._onSettingsChange));
this._useWeekdate = this._settings.get_boolean(SHOW_WEEKDATE_KEY);
layout_manager: layout });
layout.hookup_style(this.actor);
this._date = new Date();
- this._desktopSettings = new Gio.Settings({ schema: 'org.gnome.desktop.interface' });
+ this._desktopSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.interface' });
this._desktopSettings.connect('changed', Lang.bind(this, this._update));
this._weekStart = Shell.util_get_week_start();
},
Name: 'AutomountManager',
_init: function() {
- this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA });
this._volumeQueue = [];
this._session = new GnomeSession.SessionManager();
this._session.connectSignal('InhibitorAdded',
_init: function(callback) {
this._callback = callback;
- this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA });
},
guessContentTypes: function(mount) {
_init: function(manager) {
this._manager = manager;
this._sources = [];
- this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA });
},
_getAutorunSettingForType: function(contentType) {
let format;
- let desktopSettings = new Gio.Settings({ schema: 'org.gnome.desktop.interface' });
+ let desktopSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.interface' });
let clockFormat = desktopSettings.get_string(CLOCK_FORMAT_KEY);
let hasAmPm = date.toLocaleFormat('%p') != '';
this._timestamp = global.display.get_current_time_roundtrip();
- this._keyboardSettings = new Gio.Settings({ schema: KEYBOARD_SCHEMA });
+ this._keyboardSettings = new Gio.Settings({ schema_id: KEYBOARD_SCHEMA });
this._keyboardSettings.connect('changed', Lang.bind(this, this._settingsChanged));
- this._a11yApplicationsSettings = new Gio.Settings({ schema: A11Y_APPLICATIONS_SCHEMA });
+ this._a11yApplicationsSettings = new Gio.Settings({ schema_id: A11Y_APPLICATIONS_SCHEMA });
this._a11yApplicationsSettings.connect('changed', Lang.bind(this, this._settingsChanged));
this._settingsChanged();
reactive: true });
this.actor.connect('key-press-event', Lang.bind(this, this._globalKeyPressEvent));
- this._interfaceSettings = new Gio.Settings({ schema: 'org.gnome.desktop.interface' });
+ this._interfaceSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.interface' });
this._interfaceSettings.connect('changed::monospace-font-name',
Lang.bind(this, this._updateFont));
this._updateFont();
},
_settingsInit: function(zoomRegion) {
- this._appSettings = new Gio.Settings({ schema: APPLICATIONS_SCHEMA });
- this._settings = new Gio.Settings({ schema: MAGNIFIER_SCHEMA });
+ this._appSettings = new Gio.Settings({ schema_id: APPLICATIONS_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: MAGNIFIER_SCHEMA });
if (zoomRegion) {
// Mag factor is accurate to two decimal places.
layoutManager.init();
overview.init();
- _a11ySettings = new Gio.Settings({ schema: A11Y_SCHEMA });
+ _a11ySettings = new Gio.Settings({ schema_id: A11Y_SCHEMA });
global.display.connect('overlay-key', Lang.bind(overview, function () {
if (!_a11ySettings.get_boolean (STICKY_KEYS_ENABLE))
this.id = 'generic';
- this._masterSettings = new Gio.Settings({ schema: 'org.gnome.desktop.notifications' });
+ this._masterSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.notifications' });
this._masterSettings.connect('changed', Lang.bind(this, this._changed));
},
this.id = id;
this._canonicalId = this._canonicalizeId(id);
- this._masterSettings = new Gio.Settings({ schema: 'org.gnome.desktop.notifications' });
- this._settings = new Gio.Settings({ schema: 'org.gnome.desktop.notifications.application',
+ this._masterSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.notifications' });
+ this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.notifications.application',
path: '/org/gnome/desktop/notifications/application/' + this._canonicalId + '/' });
this._masterSettings.connect('changed', Lang.bind(this, this._changed));
Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated));
Main.wm.addKeybinding('toggle-message-tray',
- new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Shell.KeyBindingMode.NORMAL |
Shell.KeyBindingMode.MESSAGE_TRAY |
Shell.KeyBindingMode.OVERVIEW,
Lang.bind(this, this.toggleAndNavigate));
Main.wm.addKeybinding('focus-active-notification',
- new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Shell.KeyBindingMode.NORMAL |
Shell.KeyBindingMode.MESSAGE_TRAY |
}
}
- let searchSettings = new Gio.Settings({ schema: Search.SEARCH_PROVIDERS_SCHEMA });
+ let searchSettings = new Gio.Settings({ schema_id: Search.SEARCH_PROVIDERS_SCHEMA });
if (searchSettings.get_boolean('disable-external')) {
callback([]);
return;
this.parent({ styleClass: 'run-dialog',
destroyOnClose: false });
- this._lockdownSettings = new Gio.Settings({ schema: LOCKDOWN_SCHEMA });
- this._terminalSettings = new Gio.Settings({ schema: TERMINAL_SCHEMA });
+ this._lockdownSettings = new Gio.Settings({ schema_id: LOCKDOWN_SCHEMA });
+ this._terminalSettings = new Gio.Settings({ schema_id: TERMINAL_SCHEMA });
global.settings.connect('changed::development-tools', Lang.bind(this, function () {
this._enableInternalCommands = global.settings.get_boolean('development-tools');
}));
this._loginSession.connectSignal('Unlock', Lang.bind(this, function() { this.deactivate(false); }));
}));
- this._settings = new Gio.Settings({ schema: SCREENSAVER_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: SCREENSAVER_SCHEMA });
this._isModal = false;
this._hasLockScreen = false;
this._registerProvider(new AppDisplay.AppSearchProvider());
- this._searchSettings = new Gio.Settings({ schema: SEARCH_PROVIDERS_SCHEMA });
+ this._searchSettings = new Gio.Settings({ schema_id: SEARCH_PROVIDERS_SCHEMA });
this._searchSettings.connect('changed::disabled', Lang.bind(this, this._reloadRemoteProviders));
this._searchSettings.connect('changed::disable-external', Lang.bind(this, this._reloadRemoteProviders));
this._searchSettings.connect('changed::sort-order', Lang.bind(this, this._reloadRemoteProviders));
this.actor.add_child(this._hbox);
- this._a11ySettings = new Gio.Settings({ schema: A11Y_SCHEMA });
+ this._a11ySettings = new Gio.Settings({ schema_id: A11Y_SCHEMA });
this._a11ySettings.connect('changed::' + KEY_ALWAYS_SHOW, Lang.bind(this, this._queueSyncMenuVisibility));
let highContrast = this._buildHCItem();
},
_buildItem: function(string, schema, key) {
- let settings = new Gio.Settings({ schema: schema });
+ let settings = new Gio.Settings({ schema_id: schema });
let widget = this._buildItemExtended(string,
settings.get_boolean(key),
settings.is_writable(key),
},
_buildHCItem: function() {
- let interfaceSettings = new Gio.Settings({ schema: DESKTOP_INTERFACE_SCHEMA });
- let wmSettings = new Gio.Settings({ schema: WM_SCHEMA });
+ let interfaceSettings = new Gio.Settings({ schema_id: DESKTOP_INTERFACE_SCHEMA });
+ let wmSettings = new Gio.Settings({ schema_id: WM_SCHEMA });
let gtkTheme = interfaceSettings.get_string(KEY_GTK_THEME);
let iconTheme = interfaceSettings.get_string(KEY_ICON_THEME);
let wmTheme = wmSettings.get_string(KEY_WM_THEME);
},
_buildFontItem: function() {
- let settings = new Gio.Settings({ schema: DESKTOP_INTERFACE_SCHEMA });
+ let settings = new Gio.Settings({ schema_id: DESKTOP_INTERFACE_SCHEMA });
let factor = settings.get_double(KEY_TEXT_SCALING_FACTOR);
let initial_setting = (factor > 1.0);
this._mruSources = [];
this._keybindingAction =
Main.wm.addKeybinding('switch-input-source',
- new Gio.Settings({ schema: "org.gnome.desktop.wm.keybindings" }),
+ new Gio.Settings({ schema_id: "org.gnome.desktop.wm.keybindings" }),
Meta.KeyBindingFlags.REVERSES,
Shell.KeyBindingMode.ALL,
Lang.bind(this, this._switchInputSource));
this._keybindingActionBackward =
Main.wm.addKeybinding('switch-input-source-backward',
- new Gio.Settings({ schema: "org.gnome.desktop.wm.keybindings" }),
+ new Gio.Settings({ schema_id: "org.gnome.desktop.wm.keybindings" }),
Meta.KeyBindingFlags.REVERSES |
Meta.KeyBindingFlags.IS_REVERSED,
Shell.KeyBindingMode.ALL,
Lang.bind(this, this._switchInputSource));
- this._settings = new Gio.Settings({ schema: DESKTOP_INPUT_SOURCES_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: DESKTOP_INPUT_SOURCES_SCHEMA });
this._settings.connect('changed::' + KEY_CURRENT_INPUT_SOURCE, Lang.bind(this, this._currentInputSourceChanged));
this._settings.connect('changed::' + KEY_INPUT_SOURCES, Lang.bind(this, this._inputSourcesChanged));
_init: function() {
this.parent();
- this._settings = new Gio.Settings({ schema: LOCATION_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: LOCATION_SCHEMA });
this._settings.connect('changed::' + MAX_ACCURACY_LEVEL,
Lang.bind(this, this._onMaxAccuracyLevelChanged));
_init: function() {
this.parent();
- this._screenSaverSettings = new Gio.Settings({ schema: SCREENSAVER_SCHEMA });
- this._loginScreenSettings = new Gio.Settings({ schema: LOGIN_SCREEN_SCHEMA });
- this._lockdownSettings = new Gio.Settings({ schema: LOCKDOWN_SCHEMA });
- this._privacySettings = new Gio.Settings({ schema: PRIVACY_SCHEMA });
- this._orientationSettings = new Gio.Settings({ schema: 'org.gnome.settings-daemon.peripherals.touchscreen' });
+ this._screenSaverSettings = new Gio.Settings({ schema_id: SCREENSAVER_SCHEMA });
+ this._loginScreenSettings = new Gio.Settings({ schema_id: LOGIN_SCREEN_SCHEMA });
+ this._lockdownSettings = new Gio.Settings({ schema_id: LOCKDOWN_SCHEMA });
+ this._privacySettings = new Gio.Settings({ schema_id: PRIVACY_SCHEMA });
+ this._orientationSettings = new Gio.Settings({ schema_id: 'org.gnome.settings-daemon.peripherals.touchscreen' });
this._session = new GnomeSession.SessionManager();
this._loginManager = LoginManager.getLoginManager();
this.allowCancel = false;
- let screenSaverSettings = new Gio.Settings({ schema: 'org.gnome.desktop.screensaver' });
+ let screenSaverSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.screensaver' });
if (screenSaverSettings.get_boolean('user-switch-enabled')) {
let otherUserLabel = new St.Label({ text: _("Log in as another user"),
style_class: 'login-dialog-not-listed-label' });
}));
Main.wm.addKeybinding('toggle-application-view',
- new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Shell.KeyBindingMode.NORMAL |
Shell.KeyBindingMode.OVERVIEW,
Lang.bind(this, this._toggleAppsPage));
Main.wm.addKeybinding('toggle-overview',
- new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Shell.KeyBindingMode.NORMAL |
Shell.KeyBindingMode.OVERVIEW,
let settings = global.get_overrides_settings();
if (settings.list_keys().indexOf('dynamic-workspaces') > -1)
return settings;
- return new Gio.Settings({ schema: 'org.gnome.mutter' });
+ return new Gio.Settings({ schema_id: 'org.gnome.mutter' });
},
_checkWorkspaces: function() {
Lang.bind(this, this._startA11ySwitcher));
this.addKeybinding('pause-resume-tweens',
- new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Shell.KeyBindingMode.ALL,
Lang.bind(this, this._toggleTweens));
this.addKeybinding('open-application-menu',
- new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Shell.KeyBindingMode.NORMAL |
Shell.KeyBindingMode.TOPBAR_POPUP,
Main.overview.connect('window-drag-cancelled',
Lang.bind(this, this._onDragCancelled));
- this._settings = new Gio.Settings({ schema: OVERRIDE_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: OVERRIDE_SCHEMA });
this._settings.connect('changed::dynamic-workspaces',
Lang.bind(this, this._updateSwitcherVisibility));
},
this._scrolling = false; // swipe-scrolling
this._animatingScroll = false; // programatically updating the adjustment
- this._settings = new Gio.Settings({ schema: OVERRIDE_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: OVERRIDE_SCHEMA });
let activeWorkspaceIndex = global.screen.get_active_workspace_index();
this.scrollAdjustment = new St.Adjustment({ value: activeWorkspaceIndex,
this._workspacesViews = [];
this._primaryScrollAdjustment = null;
- this._settings = new Gio.Settings({ schema: OVERRIDE_SCHEMA });
+ this._settings = new Gio.Settings({ schema_id: OVERRIDE_SCHEMA });
this._settings.connect('changed::workspaces-only-on-primary',
Lang.bind(this,
this._workspacesOnlyOnPrimaryChanged));